<template>
  <a-config-provider :componentSize="assemblySize">
      <router-view></router-view>
      <template #renderEmpty>
		  	<Empty />
		  </template>
  </a-config-provider>
</template>

<script setup lang="ts">
import { computed } from "vue";
import { useGlobalStore } from "@/stores/modules/global";
import { useTheme } from "@/hooks/useTheme";
// 自定义空状态
import Empty from "@/components/Empty/index.vue";
// 初始化主题配置
const { initTheme } = useTheme();
initTheme();
const globalStore = useGlobalStore();
// 配置组件全局大小
const assemblySize = computed(() => globalStore.assemblySize);
</script>

<style scoped>
</style>
